package com.guocheng.modules.meet.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guocheng.modules.emp.model.po.Emp;
import com.guocheng.modules.meet.model.po.MeetEmp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

@Mapper
public interface MeetEmpMapper extends BaseMapper<MeetEmp> {

    /**
     * 添加签到人员
     * @param meetId
     * @param emps
     * @return
     */
    int inserts(@Param("meetId") Integer meetId,@Param("emps") List<Emp> emps);

    /**
     * 根据会议ids删除签到人员
     * @param ids
     * @return
     */
    int deleteByMeets(@Param("ids") Collection<? extends Serializable> ids);
}
